package com.mars.diancan.dao;

import com.mars.diancan.pojo.OrderMaster;
import com.mars.diancan.pojo.ProductCategory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 订单主表dao
 * @author MARS
 * @date 2018/6/20
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String>{

    /**
     * 获取订单主表分页数据
     * @param buyerOpenid 买家的openid
     * @param pageable
     * @return
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
